package com.yufei.infoExtractor.core;

import java.util.HashMap;
import java.util.Set;

import org.apache.commons.collections.map.HashedMap;

import com.yufei.infoExtractor.pfw.entity.Entity;
import com.yufei.infoExtractor.pfw.entity.Seedsite;
import com.yufei.infoExtractor.pfw.entity.Task;
import com.yufei.infoExtractor.task.InfoExtractorCommonTask;

/**
 * @author jasstion
   2013-1-9
 *作为针对网站信息采集流程的上下文
 */ 
public class HActionContext extends HashMap{
private  Seedsite seedsite=null;
InfoExtractorCommonTask infoExtractorCommonTask=null;
public InfoExtractorCommonTask getInfoExtractorCommonTask() {
	return infoExtractorCommonTask;
}
public void setInfoExtractorCommonTask(
		InfoExtractorCommonTask infoExtractorCommonTask) {
	this.infoExtractorCommonTask = infoExtractorCommonTask;
}
/**
 * 需要加工的实体
 */
private Entity targetEntity=null;
public Set<String> getLinkFingerPrints() {
	return linkFingerPrints;
}
public void setLinkFingerPrints(Set<String> linkFingerPrints) {
	this.linkFingerPrints = linkFingerPrints;
}
private Set[] linkSets=null;
private Integer currentDepth=0;
public Integer getCurrentDepth() {
	return currentDepth;
}
public void setCurrentDepth(Integer currentDepth) {
	this.currentDepth = currentDepth;
}
private Set<String> linkFingerPrints=null;
public HActionContext(final Seedsite seedsite) {
	super();
	this.seedsite = seedsite;
}
public Set[] getLinkSets() {
	return linkSets;
}
public void setLinkSets(Set[] linkSets) {
	this.linkSets = linkSets;
}
public HActionContext() {
	super();
	// TODO Auto-generated constructor stub
}
public Entity getTargetEntity() {
	return targetEntity;
}
public void setTargetEntity(Entity targetEntity) {
	this.targetEntity = targetEntity;
}
public Seedsite getSeedsite() {
	return seedsite;
}
public Task task=null;
public Task getTask() {
	return task;
}
public void setTask(Task task) {
	this.task = task;
}



}
